<layout name="layout" />
<div class="pageheader notab">
	<ul class="breadcrumbs breadcrumbs2"  >
		<li>
			<a href="/">首页 / 全部推广计划</a><span class="divider">&#187;</span>
		</li>
		<li style="margin-right: 0;">重力主打优化</li>
	</ul>
</div>
<form method="post" action="/promote/smart?step=2" class="" id="setupform">
	<div id="contentwrapper" class="contentwrapper" style="margin-top:15px;">
		<div style="width:950px;display:inline-block;">
			<div id="selected_products">
				<div id="contentwrapper" class="contentwrapper">
					<div id="maincontent">
						<br class="clear" />
						<div style="border-bottom:0;padding-bottom:10px">
							<div style="display:inline-block;font-size: 14px;width:69%;padding:10px;padding-left:30px;background-color: #f0f0f0;background: linear-gradient(white, #f0f0f0);border-radius: 5%;">选择测试宝贝</div>
							<div id="sub_page_btns" style="float:right;padding-right:20px;">
								<div id="table_pager" style="float:left;display:block;"></div>
								<div id='table_datepicker'  style="float:left;display:block;width:150px;">
									<form onsubmit='return false;'>
										<input type="text" id="product_keyword" class="filekeyword" value="" placeholder="输入关键词回车搜索">
									</form>
								</div>
							</div>
							<br clear="all">
						</div>
						<div id="products_list">
							<table id="products_table" cellspacing="0" cellpadding="0" border="0" class="metrotable" >
								<thead>
								<tr>
									<th style="width:10%;padding-left: 25px;">
										<input type="checkbox" id="selectAll"/>&nbsp;全选
									</th>
									<th class="head0" style="width:40%;">宝贝</th>
									<th class="head0" style="text-align:center;width:15%;">库存</th>
									<th class="head0" style="text-align:center;">
										<div style="text-align:center;" >
											<a  class="dropdown-toggle accent-color dropdown-promote" href="javascript:void(0)"style="float:none;" >销量<b class="caret"></b></a>
											<ul id="sort_by" class="dropdown-menu sortbyfield" role="menu" data-toggle="dropdown" style="left: 600px;top:145px;">
												<li><a href="javascript:void(0);" data-field="sales_count" data-order="desc">从高到低</a></li>
												<li><a href="javascript:void(0);" data-field="sales_count" data-order="asc">从低到高</a></li>
											</ul>
										</div>
									</th>
									<th class="head1">
										<div>
											<a  class="dropdown-toggle accent-color dropdown-promote" href="javascript:void(0)"style="float:none;">上架时间<b class="caret"></b></a>
											<ul id="sort_by_time" class="dropdown-menu sortbyfield" role="menu" data-toggle="dropdown" style="left: 760px;top:145px;">
												<li><a href="javascript:void(0);" data-field="publish_time" data-order="asc">从旧到新</a></li>
												<li><a href="javascript:void(0);" data-field="publish_time" data-order="desc">从新到旧</a></li>
											</ul>
										</div>
									</th>

								</tr>
								</thead>
								<tbody>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class=" last" style="position:fixed;right:70px;top:140px;width:200px;">
			<div class="row">
				<label class="label-decoration" style="margin-bottom: 0px;">推广计划推广计划<a class="tooltips" original-title="请选择一个推广计划"><img src="/Img/formInfo.png" width="17" style="padding-left: 10px;vertical-align:-2px;" ></a></label>
				<div class="field" style="margin-top:0;margin-right: 0;">
					<select id="selection" name="campaign_id"style="width:190px;">
						<option value="-1">选择一个推广计划</option>
						<option value="-2">新建计划</option>
						<volist name="campaigns" id="v">
							<option value="{$v.campaign_id}">{$v.title}</option>
						</volist>
						<if condition="$cancreate eq true">
							<option value="0">新建一个推广计划</option>
						</if>
					</select>
					<a id="clearschedule" style="border-left:0;display:none;" class="btn btn3 btn_grey btn_copy tooltips" href="javascript:void(0);" title="手动选择要推广的宝贝">清空该推广计划</a>
					<a id="deleteduplicated"  style="border-left:0px;display:none;"  class="btn btn3 btn_grey tooltips" href="javascript:void(0);" title="自动分析选择适合推广的宝贝">删除重复宝贝</a>
					<input style="display:none;" type="text" class="smallinput" name="campaign_title" id="campaign_title" placeholder="输入新的推广计划名称">
				</div>
				<div class="field" id="schedule_info" style="float:none;margin-bottom:0;"></div>
			</div>
			<div class="row">
				<label class="label-decoration">推广计划日限额<a class="tooltips" original-title="如果您觉得推广计划的限额不够，这里可以快速提高推广计划的限额"><img src="/Img/formInfo.png" width="17" style="padding-left: 10px;vertical-align:-2px;" ></a></label>
				<br class="clearall" />
				<div class="input-prepend">
					<span class="add-on">￥</span>
					<input style="font-weight:bold;font-size:18px;color:#229fdd;" type="text" class=" currencyinput" name="budget" id="campaign_budget" value="0" style="width:135px;"/>
				</div>
				<br class="clearall" />
				<small class="desc" style="display:inline">(最低30元)</small>
			</div>
			<!-- <div class="row">
                <input type="radio" id="manual_price" nsame="priceModel" checked>手动出价&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" id="auto_price" name="priceModel">自动出价
            </div> -->

			<div class="row" style="border-bottom:0px;padding-top:0px;">
				<label class="label-decoration">关键词最高出价				<a class="tooltips" original-title="关键词限价设置得太低容易影响自动推广的效果，建议关键词最高限价适当高点 "><img src="/Img/formInfo.png" width="17" style="padding-left: 10px;vertical-align:-2px;" ></a></label>
				<br class="clearall" />
				<div class="input-prepend">
					<span class="add-on">￥</span>
					<input value="0" style="font-weight:bold;font-size:18px;color:#229fdd;" type="text" name="limit" class=" noradiusright currencyinput" id="keywords_limit" style="width:135px;"/>
				</div>
				<br class="clearall" />

			</div>
		</div>
		<br clear="all">
		<div style="text-align:center; margin-top:10px;">
			<div>
				<input type="checkbox" name="agreen" checked id="agreen">我已阅读并完全同意云智投系统，并遵守《<a href="http://rule.alimama.com/#!/announce/business/detail?id=8306451&knowledgeid=5857304" target="_blank">淘宝直通车软件服务使用规范</a>》，查看<a href="javascript:;" id="protocol">操作须知</a>
			</div>
			<div style="margin-top: 10px;">
				<input type="hidden" name="num_iid" id="num_iid" value="">
				<input type="hidden" name="J_autoDrive" value="smart">
				<a id="start_quick_campaign" class="next_step login-btn" href="javascript:;">下一步</a>
			</div>
		</div>
	</div>
</form>
<script type="text/javascript">
	var t = false,
		action = '<php>echo strtolower(ACTION_NAME)</php>',
		user_id = {$me.user_id};

	$(function() {
		$('.tooltips').tipsy({
			gravity : 's',
			delayIn: 500,
			fade: true,
		});
	});
</script>
<script src="/Js/dist/custom.campaign.js?_v=<?php echo time();?>"></script>